<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>闭包</title>
		<script>
		var ar=["!aadsf","Fffvc","Ffsdfgha","SDfAA","rttt222"];
		var count=0;
		for(var i=0;i<ar.length;i++){
			
			if(ar[i].toLowerCase().indexOf("a")>=0)
			count++;
		}
		console.log("有"+count+"个");
		/**var a2=ar.filter(x=>x.indexOf("a")>=0);
		alert(a2.length);
		alert(a2.join("%"));**/
		</script>
	</head>
	<body>
	</body>
</html>
